0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Salesforce : 「INVALID_SESSION_ID」 "This session is not valid for use with the API" の原因

Posted at

要件

VBAでSalesforceへのロインあとに、DB定義を取得するとき下記エラーがでました。

SOAP API使用時に「INVALID_SESSION_ID」 "This session is not valid for use with the API" のエラーメッセージが発生しました。

原因は次だったので備忘メモです。

原因

プロファイルの「ログインに必要なセッションセキュリティレベル」が「高保証」となっている。
image.png

ここが「高保証」になっているとAPIログイン後のセッションIDをそのまま使って、APIを操作するとエラーになります。

多要素認証などを設定する際には気を付ける必要がありました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?