Skip to main content
Best Answer

Choice with Alias (Multiple) User Parameter Issue

  • April 20, 2020
  • 3 replies
  • 70 views

durshe80

I have added a user parameter type "Choice with Alias (Multiple)" to my workspace that I ultimately want to be used for exporting selected GIS layer within an area, out to a CAD file. I was able to create the parameter and when I trigger the workspace, it asks me what layers I want to export, which is all great; however, any time I select more than one layer, and try to run the workspace, I get an error as follows:

An error occurred while attempting to open the table, feature class or relationship class 'GIS_SDE.RoadArt GIS_SDE.RoadCol GIS_SDE.RoadHwy GIS_SDE.RoadOthr'. The error number from ArcObjects is: '-2147216057'. The error message from ArcObjects is: {Invalid parameter value passed to function}

It appears that it's attempting to push all selected layers in as one value/layer. Do I need to somehow add commas somewhere so that I treats each item selected as separate?

 

This seemed to have worked fine in desktop 2019, but I noticed that it broke last week when I upgraded my desktop to 2020.

Best answer by hollyatsafe

Hi @durshe80,

I have been able to reproduce this error and have filed a bug (FMEENGINE-64107) to get this looked at, as from my investigation the Choice with Alias published parameter is storing the values with the same delimiter as the Feature Type specific published parameter so you shouldn't need to do anything else.

 

As a workaround you can pull the Published Parameter down into an Attribute using a ParameterFetcher transformer and then set the Feature Types to Read to the attribute. In my testing this appears to read in multiple feature types successfully.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

durshe80
  • Author
  • April 21, 2020

After troubleshooting further, the issue appears to be when I use a feature reader (Esri ArcSDE) and have multiple ports setup (reading from multiple feature classes from the same geodatabase), using the choice with alias (multiple) parameter I can only successfully select and export one feature class/layer per feature reader.


Forum|alt.badge.img+2
  • Best Answer
  • April 24, 2020

Hi @durshe80,

I have been able to reproduce this error and have filed a bug (FMEENGINE-64107) to get this looked at, as from my investigation the Choice with Alias published parameter is storing the values with the same delimiter as the Feature Type specific published parameter so you shouldn't need to do anything else.

 

As a workaround you can pull the Published Parameter down into an Attribute using a ParameterFetcher transformer and then set the Feature Types to Read to the attribute. In my testing this appears to read in multiple feature types successfully.


durshe80
  • Author
  • April 25, 2020

Holly; thank you for responding. This workaround worked perfectly. I appreciate you following up on this issue. Thank you!