web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

The specified value has no ":" seperator. Parameter name: header

(0) ShareShare
ReportReport
Posted on by 10

Hi there,
I have the following problem with the web request from my query about the token:

private boolean bRESTGetApplicationToken()
{
    System.Net.WebHeaderCollection  oHeaders;

    date                            dtExpireDate;
    str                             sLogin = "";
    str                             sResponse;

    ANW_IEXJSONReader               oJReader;
    boolean                         bOK = true;
    CLRObject                       oClrObj;
    System.Exception                oError;

    #define.JSONToken("data.token")
    ;

//Rechte zum Ausführen setzen
    new InteropPermission(InteropKind::ClrInterop).assert();

    try
    {
//Headerdaten zusammenstellen
        oHeaders = new System.Net.WebHeaderCollection();
        sLogIn = ANW_GLBFunctions::sDecryptBase64(#EbayUser   ":"   #EbayPwd);
        oHeaders.Add(#HeaderAuthKey, #ClientId   #CertId);    // authorization   client_id   client_secret

//Webanfrage ausführen
        sResponse = this.sExecuteRequest(#URLSignIn, #MethodGET, oHeaders);

//Rückgabe auslesen und Token ermitteln
        if (sResponse)
        {
            oJReader = ANW_IEXJSONReader::oParseJSON(sResponse);
             sToken = oJReader.sGetStringNode(#JSONToken);
            if (!sToken)
            {
                bOK = false;
                error(this.sGetTransferError(sResponse));
            }
        }
    }
//Fehlerbehandlung
   catch (Exception::CLRError)
    {
        bOK = false;
        error(AIFUtil::getClrErrorMessage());
    }
    catch
    {
        bOK = false;
        ClrInterop::getLastException();
        oError = ClrInterop::getLastException();
        while (oError != null)
        {
            Error(oError.ToString());
            oError = oError.get_InnerException();
        }
    }
    return bOK;
}


I get the following error message.

The specified value has no ":" separator.
Parameter name: header

Could someone help me, what might be the cause? Thank you in advance!

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans