cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to empty country table

Former Member
0 Likes
584

In my own project impex file, I would like to empty the whole country table first, and then import the country table, so, I write in impex file as:

REMOVE country

But meet this error: Import script is invalid: no permitted type found for configured columns. omitted types: {8796093710418=[type Country has no unique columns - no permitted type for mode import_strict]}

Anyone know how to do it?

Accepted Solutions (0)

Answers (3)

Answers (3)

rohit31_raj92
Active Participant
0 Likes

Hi

You can also drop the table data using sql scripts or remove the table data using batch mode as said already by Arvind.

VinayKumarS
Active Contributor
0 Likes

As Arvind mentioned in the example. Every insert update or remove impex should have alteast one uniqe column. in Arvind example he mentioend itemtype(code)[unique=true]. Without this unique column impex will not run.

Former Member
0 Likes

As Raj mentioned sql is recommended option for removing the complete table data.

arvind-kumar_avinash
Active Contributor
0 Likes

Please use the following ImpEx:

  REMOVE Country[batchmode=true];itemtype(code)[unique=true]
  ;Country