Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7564547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:56:09+00:00 2026-05-30T13:56:09+00:00

Get the above error when the execute immediate is called in a loop Update

  • 0

Get the above error when the execute immediate is called in a loop

Update CustomersPriceGroups set  1AO00=:disc  Where cuno=:cuno
    Parameters:   disc=66 cuno=000974
Update CustomersPriceGroups set  1AP00=:disc  Where cuno=:cuno
    Parameters:   disc=70.5 cuno=000974
Update CustomersPriceGroups set  1AQ00=:disc  Where cuno=:cuno
    Parameters:   disc=66 cuno=000974
Update CustomersPriceGroups set  1ZA00=:disc  Where cuno=:cuno
    Parameters:   disc=60 cuno=000974

What does this mean ?

Here is the code fragment

    c:=PriceWorx.frcPriceListCustomers('020','221');
LOOP
  fetch c into comno,cuno,nama,cpls;
  exit when c%notfound;
  dbms_output.put_Line(cuno);
   g:=priceWorx.frcPriceListItemGroups('020','221');
   d:=priceworx.frcCustomerDiscounts('020','221',cuno);
  loop
    fetch g into comno,cpgs,n;
    fetch d into comno,cpls,cuno,cpgs,stdt,tdat,qanp,disc,src;
    --dbms_output.put(chr(9)||cpgs);
    sQ:='Update saap.CustomersPriceGroups set "'|| trim(cpgs)||'"=:disc '
       || ' Where cuno=:cuno';
    execute immediate sQ using disc,cuno; 
    commit;
    dbms_output.put_line( sQ );
    dbms_output.put_line( chr(9)||'Parameters:   disc='|| disc||' cuno='||cuno);
    exit when g%notfound;
  end loop;
  close g;
  close d;
end loop;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T13:56:10+00:00Added an answer on May 30, 2026 at 1:56 pm

    Unquoted identifiers must begin with an alphabetic character (see rule 6 here). You’re trying to assign a value to a column with a name starting with a number 1AO00, 1AP00 etc.

    Without seeing the table definition for CustomersPriceGroups we don’t know if it has columns with those names. If it does then they must have been created as quoted identifiers. If so you’ll have to refer to them (everywhere) with quotes, which is not ideal – makes the code a bit harder to read, makes it easy to make a mistake like this, and can be hard to spot what’s wrong. Even Oracle say, on the same page:

    Note: Oracle does not recommend using quoted identifiers for database
    object names. These quoted identifiers are accepted by SQL*Plus, but
    they may not be valid when using other tools that manage database
    objects.

    In you code you appear to be using quotes when you assign sQ, but the output you show doesn’t; but it doesn’t have the saap. schema identifier either. That may be because you’re not running the version of the code you think, but might just have been
    lost if you retyped the data instead of pasting it – you’re not showing the earlier output of c.cuno either. But it’s also possible you have, say, the case of the column name wrong.

    If the execute is throwing the error, you won’t see the command being executed that time around the loop because the debug comes after it – you’re seeing the successful values, not the one that’s breaking. You need to check all the values being returned by the functions; I suspect that g is returning a value for cpgs that actually isn’t a valid column name.

    As @ninesided says, showing more information, particularly the full exception message, will help identify what’s wrong.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get the above error whenever I try and use ActionLink ? I've only
Whenever I build the following code, I get the error above. //Controller.h #import <UIKit/UIKit.h>
when I apply the tag above my methods I get the error Type System.Runtime.CompilerServices.Extension
I get the following error when trying to execute a mail merge from access
I get the error: ORA-01855: AM/A.M. or PM/P.M. required when I try to execute
When I try to run this view/function, I get the following error execute() first
Why do i get "Document command not available error" when i trying to execute
I gave the above string,I want to get the serveripaddress,DB1,uid and **** these values
How would you get a reference to an executing class several stack frames above
Directory.GetFiles(targetDirectory); Using the above code we get the names( i.e full path) of all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.