I’ve built an activity in Integration Service with Parameters:
And Response Fields:
Then when using this activity in a process I’m receiving an error:
If I convert TransmittalItem to JSON then I can see two entries for code and Code:
I’ve only got the one code output defined in Integration Service, how do I remove the duplicate?
@samuel.janetzki
Can you check your response fields from properties section of the activity whether there is any duplicate names are there as Code and code. that may be hidden sometimes, just give a deep look and find out and delete.
OR
If is there any chance that you can edit field name instead Code try to modify Status code or something like that
Resolved the issue, I needed to delete the existing Response Fields and recreate them starting with a lowercase letter:
So if field is returned in JSON response starting with a lowercase letter then the Response Field must start with a lowercase letter. If the field in the JSON response starts with an uppercase letter then the Response Field can start with an uppercase or lowercase letter.
Hi @samuel.janetzki,
Thanks for sharing the resolution — this will definitely help others facing the same BC31429 ambiguity issue.
The problem occurs because VB.NET treats member names in a case-insensitive way in certain scenarios, which can create conflicts between fields like:
Codecode
In Integration Service activities, the Response Fields should closely match the JSON response naming convention.
Resolution:
- Delete the existing Response Fields
- Recreate them using the exact casing from the JSON response
- If the JSON field starts with lowercase, create the Response Field in lowercase as well
Example:
{ "code": 200}
Correct Response Field:
code
Using Code may trigger the ambiguity error.
Good catch on identifying the casing behavior.