Skip to main content
Mahdi Ahbab a posé une question dans #Vlocity

Hi all, 

 

I'm getting an error message, when previewing my omniscript - specifically on the data mapper post action: "Required fields are missing: [Name]". 

 

 I am trying to update a custom field on the Quote object. When previewing it in the data mapper itself, it updates the records fine. However when previewing in omniscript it throws an error. Does anyone have any insights into this? 

 

NOTE - Omniscript is sample "Single Doc Core - DOCX Serverside(LWC)" with few additional steps.  

Error on Data Mapper Post Action in Omniscript

 

 

 

#Vlocity

1 réponse
  1. 10 oct., 13:11

    @Mahdi Ahbab the mapper preview updates because your test input has the Quote Id. The OmniScript is not sending that Id, so Salesforce tries to insert a Quote, and a new Quote requires Name.

    In the OmniScript preview debug, look at the JSON going into that Post action. If Id is missing, or it sits under a different node than the mapper expects, that is the insert. Map the Quote Id from the script into the mapper input and use it as the upsert key. Do not send Name unless you actually want a new Quote.

    The sample Single Doc Core script has its own data JSON. An extra step will not put Id where the mapper looks unless you mapped that node. The mapper itself is fine. You already proved that in its own preview.

0/9000