Hexagon Geospatial
MENU

Smart M.App

Looking for answers in regards to M.Apps, M.App Exchange or M.App Studio? Smart M.App Tech Discussion board is where you can search, ask your questions and assist others by sharing your knowledge. Join the conversation, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 34
Registered: ‎10-21-2016

Recipe in which two vector outputs are generated

[ Edited ]

Hello everyone,

 

I was wondering how I can use a recipe-model in which two vector outputs are generated. I tried, but my model fails to register the outputs. This is what my model looks like: 

1Input2Output.jpg

 

Here is a link to WeTransfer, where you can download the model and the error log: https://we.tl/x1neEPbLuK

Does anybody know how to do this? You would really help us out. 

 

Kind regards,

Vincent

Highlighted
Frequent Contributor
Posts: 110
Registered: ‎10-14-2015

Re: Recipe in which two vector outputs are generated

Dear Community,

 

I have tested this model and other models with multipe outputs and this works fine.

 

The issue is writing a shapefile with EPSG28992. It seems that executing any recipe where the output is a EPSG28992 shapefile fails.

 

Attached the error log where I input an EPSG28992 (RDnew) shapefile and output an EPSG4326 (wgs84) Shapefile and an EPSG28992(RDnew) shapefile.

 

INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:52,727 08f58bf2-556e-4f09-b215-25ef94f2e3aa Heartbeat recorded 'Pre-Validation'
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:52,743 08f58bf2-556e-4f09-b215-25ef94f2e3aa Checking all job inputs are valid and exist on active storage
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:52,881 08f58bf2-556e-4f09-b215-25ef94f2e3aa Input catalog items: f8027fa7-66bf-4ce9-a9c3-6294c1c03c56_2c918082579a7fab01582586a23a62c7,f8027fa7-66bf-4ce9-a9c3-6294c1c03c56_2c918082579a75b90158258771025be4
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:52,887 08f58bf2-556e-4f09-b215-25ef94f2e3aa All job inputs are valid and exist on active storage
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:52,887 08f58bf2-556e-4f09-b215-25ef94f2e3aa Checking all job output folders are valid
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:52,936 08f58bf2-556e-4f09-b215-25ef94f2e3aa All job output folders are valid
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:52,936 08f58bf2-556e-4f09-b215-25ef94f2e3aa Checking validity of model/process in catalog
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:52,936 08f58bf2-556e-4f09-b215-25ef94f2e3aa Model id f8027fa7-66bf-4ce9-a9c3-6294c1c03c56_2c9180835864cee801588c03c66e6474
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:53,043 08f58bf2-556e-4f09-b215-25ef94f2e3aa Resolved model
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:53,549 08f58bf2-556e-4f09-b215-25ef94f2e3aa Validated model
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:53,608 08f58bf2-556e-4f09-b215-25ef94f2e3aa Downloaded model
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:53,608 08f58bf2-556e-4f09-b215-25ef94f2e3aa Model/process is valid
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:53,608 08f58bf2-556e-4f09-b215-25ef94f2e3aa Resolving model type f8027fa7-66bf-4ce9-a9c3-6294c1c03c56_2c9180835864cee801588c03c66e6474
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:53,608 08f58bf2-556e-4f09-b215-25ef94f2e3aa Local model path /mnt/datapoint/tmp/temp/Hexagon/models/08f58bf2-556e-4f09-b215-25ef94f2e3aa.gmdx
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:53,611 08f58bf2-556e-4f09-b215-25ef94f2e3aa Will use tasklist Generic
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:54,878 08f58bf2-556e-4f09-b215-25ef94f2e3aa Validated successfully
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:54,909 08f58bf2-556e-4f09-b215-25ef94f2e3aa Heartbeat recorded 'Post-Validation'
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:55,930 08f58bf2-556e-4f09-b215-25ef94f2e3aa Heartbeat recorded 'Pre-SpawnWorkerInstance'
INFO  [SWF Activity  DefaultDecisionType 1] 2016-11-22 12:30:55,976 08f58bf2-556e-4f09-b215-25ef94f2e3aa Heartbeat recorded 'Post-SpawnWorkerInstance'
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:25,400 08f58bf2-556e-4f09-b215-25ef94f2e3aa Creating outputs dir: C:\Windows\TEMP\08f58bf2-556e-4f09-b215-25ef94f2e3aa\outputs
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:25,572 08f58bf2-556e-4f09-b215-25ef94f2e3aa Executing model: f8027fa7-66bf-4ce9-a9c3-6294c1c03c56_2c9180835864cee801588c03c66e6474
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:25,650 08f58bf2-556e-4f09-b215-25ef94f2e3aa Heartbeat recorded 'Execution 0.0'
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:35,697 08f58bf2-556e-4f09-b215-25ef94f2e3aa Imagine log output: Running spatial model (C:/Windows/TEMP/SMPROCESS_MODEL1479817825477611).


INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:35,697 08f58bf2-556e-4f09-b215-25ef94f2e3aa Model execution completed successfully.
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:35,728 08f58bf2-556e-4f09-b215-25ef94f2e3aa Registering outputs in calalog
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:35,916 08f58bf2-556e-4f09-b215-25ef94f2e3aa Created upload job upload-6479a8b9-f099-419c-90b9-8b983f76fca4
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:35,978 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.shp 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:35,994 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.shp 20.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:36,025 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.csf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:36,041 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.csf 20.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:36,072 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:36,166 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.dbf 20.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:36,384 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:36,791 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:37,603 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:39,213 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:42,416 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:30:48,822 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:01,681 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:27,305 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.dbf 20.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:27,336 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.prj 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:27,352 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.prj 20.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:27,383 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.shx 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:27,415 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG28992_RDnew.shx 20.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:27,446 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.shp 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:27,477 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.shp 20.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:27,508 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.csf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:27,524 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.csf 20.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:27,555 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:27,649 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.dbf 20.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:27,868 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:28,274 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:29,086 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:30,696 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:33,946 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:40,352 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:31:53,164 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.dbf 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:32:18,835 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.dbf 20.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:32:18,866 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.prj 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:32:18,882 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.prj 20.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:32:18,913 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.shx 0.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:32:18,929 08f58bf2-556e-4f09-b215-25ef94f2e3aa Copying file EPSG4326_wgs84.shx 20.00%
INFO  [SWF Activity  Generic 1] 2016-11-22 12:32:18,945 08f58bf2-556e-4f09-b215-25ef94f2e3aa Completing upload job upload-6479a8b9-f099-419c-90b9-8b983f76fca4
INFO  [SWF Activity  Generic 1] 2016-11-22 12:32:19,038 08f58bf2-556e-4f09-b215-25ef94f2e3aa Upload job upload-6479a8b9-f099-419c-90b9-8b983f76fca4 completed
FATAL [SWF Activity  Generic 1] 2016-11-22 12:32:24,241 08f58bf2-556e-4f09-b215-25ef94f2e3aa Registering outputs failed
java.lang.IllegalStateException: Failed to register outputs
    at com.hexagon.windmill.workflows.swfgeoprocessing.swf.actions.WindmillCatalogDatasetActions.RegisterOutputs(WindmillCatalogDatasetActions.java:196)
    at com.hexagon.windmill.workflows.swfgeoprocessing.swf.GeoprocessingActivitiesImpl.ExecuteModel(GeoprocessingActivitiesImpl.java:293)
    at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.amazonaws.services.simpleworkflow.flow.pojo.POJOActivityImplementation.execute(POJOActivityImplementation.java:64)
    at com.amazonaws.services.simpleworkflow.flow.generic.ActivityImplementationBase.execute(ActivityImplementationBase.java:46)
    at com.amazonaws.services.simpleworkflow.flow.worker.SynchronousActivityTaskPoller.execute(SynchronousActivityTaskPoller.java:196)
    at com.amazonaws.services.simpleworkflow.flow.worker.ActivityTaskPoller$2.run(ActivityTaskPoller.java:92)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: com.hexagon.windmill.client.datamanagement.DataManagementClientException: Waiting for upload with id upload-6479a8b9-f099-419c-90b9-8b983f76fca4 failed: Unknown exception caught when waiting for transfer to finish. See inner exception for details.
    at com.hexagon.windmill.client.datamanagement.DataManagementClient.WaitForUpload(DataManagementClient.java:316)
    at com.hexagon.windmill.client.datamanagement.DataManagementClient.UploadFilesAndRegisterInCatalog(DataManagementClient.java:114)
    at com.hexagon.windmill.workflows.swfgeoprocessing.swf.actions.WindmillCatalogDatasetActions.RegisterOutputs(WindmillCatalogDatasetActions.java:189)
    ... 11 more
Caused by: java.lang.Exception: There was an error handling response. Response body: {"id":"upload-6479a8b9-f099-419c-90b9-8b983f76fca4","displayableStatus":"ERROR","progress":"100","state":"ERROR","startTime":"2016-11-22T12:32:57Z","endTime":"2016-11-22T12:33:00Z","uploadedFiles":null,"uploadComplete":true,"errors":"<errors>\n  <task-error timestamp=\"2016-11-22 12:33:00.821 UTC\" context=\"/mnt/datapoint/temp/f8027fa7-66bf-4ce9-a9c3-6294c1c03c56/upload-6479a8b9-f099-419c-90b9-8b983f76fca4/EPSG28992_RDnew.shp\">\n    <message>There was a problem decoding this entity, /mnt/datapoint/temp/f8027fa7-66bf-4ce9-a9c3-6294c1c03c56/upload-6479a8b9-f099-419c-90b9-8b983f76fca4/EPSG28992_RDnew.shp</message>\n    <stack-trace>There was a problem decoding this entity, /mnt/datapoint/temp/f8027fa7-66bf-4ce9-a9c3-6294c1c03c56/upload-6479a8b9-f099-419c-90b9-8b983f76fca4/EPSG28992_RDnew.shp</stack-trace>\n  </task-error>\n</errors>","s3Properties":null,"activeStorageProperties":null,"registerProperties":{"parentFolderId":"f8027fa7-66bf-4ce9-a9c3-6294c1c03c56_2c918082582560360158257c18c70024","subFolder":null,"generateThumbnail":true,"footPrintType":"Extent","uploadStoreType":"ActiveStorage","sourceBucket":null,"s3Keys":null,"copyToInternalBucket":true,"downloadIsAllowed":true,"publishIsAllowed":true,"publishProperties":{"autoPublish":false,"capabilitiesTitle":"","parentVirtualFolder":"/","virtualName":"","wmsEnabled":true,"wmtsEnabled":false,"ecwpEnabled":false,"geomapserviceEnabled":false,"jpipEnabled":false,"outputCSList":null}},"crawledDatasetIds":{"EPSG4326_wgs84.shp":"f8027fa7-66bf-4ce9-a9c3-6294c1c03c56_2c9180835864cee801588c066247647d"},"crawledFolderIds":null}
    at com.hexagon.windmill.client.datamanagement.DataManagementClient.WaitForUpload(DataManagementClient.java:302)
    ... 13 more
Caused by: com.hexagon.windmill.client.datamanagement.DataManagementClientException: Waiting for upload with id upload-6479a8b9-f099-419c-90b9-8b983f76fca4 finished with errors: <errors>
  <task-error timestamp="2016-11-22 12:33:00.821 UTC" context="/mnt/datapoint/temp/f8027fa7-66bf-4ce9-a9c3-6294c1c03c56/upload-6479a8b9-f099-419c-90b9-8b983f76fca4/EPSG28992_RDnew.shp">
    <message>There was a problem decoding this entity, /mnt/datapoint/temp/f8027fa7-66bf-4ce9-a9c3-6294c1c03c56/upload-6479a8b9-f099-419c-90b9-8b983f76fca4/EPSG28992_RDnew.shp</message>
    <stack-trace>There was a problem decoding this entity, /mnt/datapoint/temp/f8027fa7-66bf-4ce9-a9c3-6294c1c03c56/upload-6479a8b9-f099-419c-90b9-8b983f76fca4/EPSG28992_RDnew.shp</stack-trace>
  </task-error>
</errors>
    at com.hexagon.windmill.client.datamanagement.DataManagementClient.WaitForUpload(DataManagementClient.java:287)
    ... 13 more
INFO  [SWF Activity  Generic 1] 2016-11-22 12:32:24,288 08f58bf2-556e-4f09-b215-25ef94f2e3aa Registering execution with metrics



Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.