Error message Could not find object of type ....

0
I’m getting the error message Could not find object of type XX”   during a JSON import, and have problems to find out where the JSON import goes wrong.  Maybe somebody has an idea where the error message could come from?
asked
3 answers
0

Hi Monica,

Can you give some more info? Are you trying to do an API call or what kind of JSON import are you trying to achieve? If it's a REST call you can try to do the mapping later in the microflow and put a breakpoint after the API call to see what kind of objects your getting as a response from the API.

 

Like this, maybe that gives you an idea of whats going wrong in the mapping.

 

 

answered
0

Hi,

did you make changes (of type) in your domain model after creating te mapping?

did you create your mapping via a json file?

can you share your json and mapping?

 

 

answered
0

Hi Lourens, hi Steven,

thanks for your reply!

We use JSON import via a mapping,   The screenshot show the ‘ImportProject’ microflow that is used  top-level in the JSON mapping. This microflow throws the error ‘Could not find object of type TRAProject’ .

Actually, the error is only thrown when something goes wrong during the parsing, e.g if we use an old JSON file (we indeed have changed the domain model since then).   

I would like to understand where the error comes from, also in order to provide a better error message that gives the user a hint what is wrong in the JSON file.

 

 

 

answered