Records not inserted into target tables using robust transform map

Vinay2509
Tera Contributor

Hi Team,

 

I am following RTE process for importing data, staging table is inserting but records not inserting on target table, please help with trouble shoot.

 

We already cross verified field mappings and same looks fine. 

Importset state is completed.

and done reprocess/retransform as well.

 

Still unable to see records on target tables, please advise.

7 REPLIES 7

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Vinay2509 ,

 

When you encounter issues with records not inserting into the target table despite the import set being completed and field mappings verified, it's important to perform a systematic troubleshooting process. Here are some steps you can take to identify and resolve the problem:

 

1. **Check Import Set Transform Maps:**

   - Verify the transform maps associated with your import set. Ensure that the field mappings are correctly configured, and there are no errors in the transform map scripts or conditions. Pay special attention to mandatory fields that might be preventing records from being inserted.

 

2. **Review Data in Staging Table:**

   - Inspect the data in the staging table to confirm that it matches your expectations. Look for any unexpected values or empty mandatory fields. If the data in the staging table is incorrect, it won't be inserted into the target table.

 

3. **Check Import Set Errors:**

   - Review the import set errors and logs. ServiceNow provides detailed error messages when records fail to be inserted. Look for any specific error messages that might indicate the cause of the problem.

 

4. **Verify Data Types and Formats:**

   - Ensure that the data types and formats of the fields in the import set match the corresponding fields in the target table. Mismatched data types can cause insertion failures.

 

5. **Check Business Rules and Script Includes:**

   - Review any business rules or script includes that might be triggered during the insertion process. These scripts could be preventing records from being inserted based on certain conditions or validations.

 

6. **Validate Reference Fields:**

   - If your target table has reference fields, make sure that the referenced records exist in the referenced tables. If a reference field in your import set contains invalid references, records won't be inserted.

 

7. **Review Transform Script Logs:**

   - If you have transform scripts, add logging statements to the scripts to trace their execution. This can help you identify if the scripts are encountering any issues during transformation.

 

8. **Inspect System Logs:**

   - Check the system logs (`System Logs` > `All` in the application navigator) for any error messages related to the import process. Look for any errors or warnings that might provide insights into the problem.

 

9. **Validate Data during Transform:**

   - Add debug statements within the transform map scripts to log the data being processed. This can help you verify that the data is correctly transformed before insertion into the target table.

 

10. **Check Field-Level Security:**

    - Ensure that the user executing the import has the necessary permissions to insert records into the target table. Check field-level security and ACLs (Access Control Rules) associated with the target table.

 

By following these steps, you should be able to identify the root cause of the issue and take the appropriate actions to resolve it.

 

Mark my answer helpful & accepted if it helps you resolve your issue.

 

Thanks,

Danish

Hi Danish,

 

Thanks for the response, but here I am dealing with Excel sheet records and not using any script.

For Robust mapping followed all steps as Load Data-->entity creation-->feild mapping.

 

Observed data loading into staging table. But not on target tables.

Nikita28
Mega Guru

Hi @Vinay2509 ,
I am also facing the same issue. Were you able to find the solution to the problem by chance?

@Nikita28

I used Integration Hub import capabilty to load excel data. Try this this is easy way to import data.

Vinay2509_0-1706786582703.png

 

Like this if solution helpful!

 

Thanks

Vinay