Redefinition a main key in VARVc
Vadym
2-7-20
Hello. I try to migrate client from 8.1 to 8.5 and I have a problem.

In 8.1 VARVc was redifinited and in main key added additional index.

But if I try run 8.5 with this datadef hal.log tels me next:
"Error 1:redefinition of register VARVc is not allowed, please use RecordAddBegin()/EndRecordAdd()"

How can I solve this case?

Before

MainKeyBegin(Code,0);
KeySegment(Code);

After
MainKeyBegin(Code,0);
KeySegment(Code);
KeySegment(VARGCode);
Christoffer Riska
2-9-20
Maybe try this:

begin
RecordAddBegin(VARVc,"VARVc_custom");
MainKeyBegin(Code,0);
KeySegment(Code);
KeySegment(VARGCode);
EndRecordAdd;
return;
end;
Vadym
2-10-20
Unfortunately, HAL not support change existing keys in reccordadd block. Only when full redefinition record.
Edgars Dzenis
2-12-20
Hello,
How does Your datadef look in 8.1?

Did You try disabling index(DisableIndex("IndexName");) and add again?
Vadym
2-13-20
Edgars, thanks. DisableIndex is work fine - it's that I need.
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Piotr Wycichowski
This is not the issue of upgrade SERP. But serverip.dat in this case contains the value: 192.168.88.12:1301, so this is local IP of the server with SERP. Anyway I don't understand what do you me...
15:30 14 Jan 2025
Brittany McGrath
reply ...
05:10 14 Jan 2025