When using Get-PnPTerm cmdlet to retrieve all terms from a term set containing about 70,000 terms, it very often fails with the below time out message:
"Exception calling "ExecuteQuery" with "0" argument(s): "The request channel timed out while waiting for a reply after 00:00:29.8593156. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout."
I need to retrieve such list once per day. Tried with getting context first (Get-PnPContext) then setting high RequestTimeout value, loading and executing query, but that doesn't help.
Are there any better ways to retrieve these? Maybe in batches? I have been trying a lot of different approaches but can't get there.