Skip to main content
Solved

24R2 Snapshot Creation Error: An error occurred while importing data into the 'CustomerPriceRepository' table.

  • Aug 28, 2025 10:31 PM UTC
  • 18 replies
  • 357 views
  • Translate All

vivekm
Varsity III
Forum|alt.badge.img

Hi Team,

I am working with 24R2 Build 24.210.0019.

And created custom table that has some data in it.

But while snapshot creation getting error like: “An error occurred while importing data into the 'CustomerPriceRepository' table.”

Can you please suggest the possible root cause and fix for the error.

Thanks,

Best answer by vivekm

Hi ​@darylbowman and everyone thank you for the response. The issue seems to be related to the missing audit fields. I have dropped the table and recreated the table with audit fields and with this the snapshot issue resolved.

View original

18 replies

JSpikowski
Jr Varsity II
Forum|alt.badge.img
  • Jr Varsity II
  • Aug 29, 2025 1:49 AM UTC

They should call them SnapAttack. 👻

Translate

Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+16

​@vivekm 

Are you facing the same issue when creating a snapshot?

This error typically occurs if there is no space available. Another option is to try creating the snapshot 2–3 more times.

To free up space, you may also:

  • Delete unwanted snapshots

  • Run database optimization

  • Delete audit history from unwanted tables

Translate

JSpikowski
Jr Varsity II
Forum|alt.badge.img
  • Jr Varsity II
  • Aug 29, 2025 4:59 AM UTC

Getting at your data is like the stairway to heaven.

Translate

MichaelShirk
Captain II
Forum|alt.badge.img+8

​@vivekm are you able to view and share the trace log? There might be more details there. 

There are default limits (that can be changed) to the size of tables that can be imported. I’ve seen this be the problem on a number of occasions. If you open the snapshot folder and search for this table, you should be able to see the “actual size”. I believe the default limit is 2GB.

 

 

​@JSpikowski  Responses to people’s questions should really be limited to helping find an answer.

Translate

darylbowman
Captain II
Forum|alt.badge.img+17

@JSpikowski  Responses to people’s questions should really be limited to helping find an answer.

Or at least include something helpful 😏

Translate

vivekm
Varsity III
Forum|alt.badge.img
  • Author
  • Varsity III
  • Aug 29, 2025 2:57 PM UTC

Hi ​@Manikanta Dhulipudi 

Yes, I do have space in the system and tried around 5-6 times but to no avail.

Also there is the scenario where is there are no records in the table then I am able to create the snapshot but if record is there in the table then getting the error.

 

Translate

darylbowman
Captain II
Forum|alt.badge.img+17

Could you post the DAC for your table?

Translate

vivekm
Varsity III
Forum|alt.badge.img
  • Author
  • Varsity III
  • Aug 29, 2025 2:58 PM UTC

Hi ​@MichaelShirk 

Sure, I will get trace details and share for review and inputs.

Also, there is this scenario where if there are no records in the table then I am able to create the snapshot but if records are there in the table then getting the error.

Translate

vivekm
Varsity III
Forum|alt.badge.img
  • Author
  • Varsity III
  • Aug 29, 2025 2:59 PM UTC

Hi ​@darylbowman,

Sure, will share DAC, DB table script and trace details here for your review and inputs.

Translate

JSpikowski
Jr Varsity II
Forum|alt.badge.img
  • Jr Varsity II
  • Aug 29, 2025 6:57 PM UTC

You're right. I shouldn't make jokes when someone is hurting.

Translate

vivekm
Varsity III
Forum|alt.badge.img
  • Author
  • Varsity III
  • Sep 1, 2025 8:16 AM UTC

Hi ​@MichaelShirk ​@darylbowman 

Please find the attached DAC and DB files for reference.

Translate

Forum|alt.badge.img+11
  • Captain II
  • Sep 1, 2025 2:21 PM UTC

Hi ​@vivekm 

 

You could save the zip file of the snapshot in C:\Acumatica ERP\Database\Data.

Then you can go into Acumatica Config, ‘Perform Database Maintenance’, then select your DB, then in the ‘Insert Data’ column, you can insert the data from your snapshot, hopefully without errors. Make sure you tick ‘advanced settings’ before trying to modify the ‘insert data’.

 

You may still get the error, or it could work.

 

You mentioned posting the trace, can you please do so?

Translate

darylbowman
Captain II
Forum|alt.badge.img+17

Your DAC specifies ShopifyVariantGID and ShopifyPriceListGID as 1000 (length) but in DB Scripts is only 255.

CompanyID must be included in the primary key constraint and should not be nullable (in DB).

Translate

vivekm
Varsity III
Forum|alt.badge.img
  • Author
  • Varsity III
  • Sep 10, 2025 11:35 AM UTC

Hi ​@aiwan 

Thank you for the response. The issue I am facing is on snapshot creation, not on restoration.

Translate

vivekm
Varsity III
Forum|alt.badge.img
  • Author
  • Varsity III
  • Sep 10, 2025 11:39 AM UTC

Thank you ​@darylbowman for the inputs. I will validate the shared observations.

Also sharing attached files with trace details, DAC, and DB scripts below for your and ​@MichaelShirk reference and review.

 

 

Translate

vivekm
Varsity III
Forum|alt.badge.img
  • Author
  • Varsity III
  • Sep 15, 2025 9:20 AM UTC

Hello ​@darylbowman 

I tried the below suggested implementations but it also results in same error. Can you please review and suggest.

Your DAC specifies ShopifyVariantGID and ShopifyPriceListGID as 1000 (length) but in DB Scripts is only 255.

CompanyID must be included in the primary key constraint and should not be nullable (in DB).

 

Translate

darylbowman
Captain II
Forum|alt.badge.img+17

What is the UQ constraint?

Translate

vivekm
Varsity III
Forum|alt.badge.img
  • Author
  • Varsity III
  • Answer
  • Sep 19, 2025 9:27 PM UTC

Hi ​@darylbowman and everyone thank you for the response. The issue seems to be related to the missing audit fields. I have dropped the table and recreated the table with audit fields and with this the snapshot issue resolved.

Translate