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
Lilian Wanyoike
Hi, Spinners & Spinners are currently on version 8.5 2022-02-02 (build 85420830). they have been experiencing a network lag. Action taken: - Checked logs and confirmed that they had not whiteli...
14:13 30 Aug 2024
Lilian Wanyoike
Hi, Spinners & Spinners are currently on version 8.5 2022-02-02 (build 85420830). they have been experiencing a network lag. Action taken: - Checked logs and confirmed that they had not whiteli...
14:13 30 Aug 2024