LastRowInGroup() function not working all of a sudden

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
saiwelcomes
Participant
Posts: 22
Joined: Thu Apr 19, 2012 3:31 am
Location: India

LastRowInGroup() function not working all of a sudden

Post by saiwelcomes »

Hi All,

I have used LastRowInGroup() funtion in one of my job to get the expected result as per my requirement. The job is working fine till yesterday. All of a sudden, the job is not working properly and the job is getting aborted. The error message get displayed is "Error when checking operator: No input sort key information found. Keys being checked: record
( INTERFACE_INSTANCE_ID: int32;
). Input data must be sorted with the keys that are passed to key-break function calls. If input data has already been sorted, a sort stage needs to be inserted on the input link with each key specified in "Don't Sort" mode. If input data has been pre-grouped, a sort stage needs to be inserted on the input link with at least one key not in "Don't Sort" mode."

But I did sorting and could not identify the root cause of the problem

Any suggestions/help is highly appreciated.
Regards,
Sai Krishna
rahcomp
Participant
Posts: 11
Joined: Wed Apr 18, 2012 2:13 pm

Re: LastRowInGroup() function not working all of a sudden

Post by rahcomp »

Try converting your sort / partition keys to not nullable and then try once.
Rahul
DS Lover
saiwelcomes
Participant
Posts: 22
Joined: Thu Apr 19, 2012 3:31 am
Location: India

Post by saiwelcomes »

Hi,

I have already applied non-nullable on sorting and partitioning columns. Is there any environment variable setting for this.
Regards,
Sai Krishna
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

Possibly something has changed either in the job or within the project the job belongs to. This problem sounds as if it may be related to <a href="http://www-01.ibm.com/support/docview.w ... 9249">APAR JR39249</a> from IBM. I suggest you contact your official support provider to verify.

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
saiwelcomes
Participant
Posts: 22
Joined: Thu Apr 19, 2012 3:31 am
Location: India

Post by saiwelcomes »

Hi,

APT_NO_SORT_INSERTION varaible was already set to False in our environment.

I am really in need of urgent help on this.

Thanks in advance.
Regards,
Sai Krishna
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then contact your official support provider.
-craig

"You can never have too many knives" -- Logan Nine Fingers
saiwelcomes
Participant
Posts: 22
Joined: Thu Apr 19, 2012 3:31 am
Location: India

Post by saiwelcomes »

Hi Craig,

The problem is resolved. :D I just set APT_NO_SORT_INSERTION flag to True and compiled the jobs. Then again set APT_NO_SORT_INSERTION flag to false. Restarted the server as well. I think the reason for this is cache overflow.

Thanks to all for your replies.
Regards,
Sai Krishna
Post Reply