Course material, available in Catalan, Spanish and English.

Help — Sessions 0–6

Read the error, identify your current step and check one thing at a time. A problem does not mean you need to start again.

Accounts and permissions

I cannot open Apps Script or deploy. Check the account, message and access to the spreadsheet and project. Ask the administrator about work or school restrictions. Do not bypass them using another account.

Which account should I use? An account authorised for the task, with fictional data. A personal account can be suitable for personal learning; do not copy company information into it. Before using real data, review accounts, access and management with your organisation.

Google says the app is unverified. Do not accept automatically. Review the project, what the code does and the permissions. If you do not understand them, stop and ask for help. AI writing the code does not make it safe.

It requests Sheets, email or Drive permissions. SpreadsheetApp.openById requires Sheets authorisation, whose scope may cover the account's spreadsheets. Session 1 does not need email or photos. Review any unexpected service before continuing.

Connecting and testing the app

I cannot find the right ID. It is the part between /spreadsheets/d/ and the next slash in the Sheets address. It is not the Script ID or /exec link. Paste it inside quotes in ID_DEL_FULL.

It cannot find the data. Check account access, the document ID, the Registres tab and row 1 headers. The document name is different from the tab name. Keep headers exactly as shown in your exercise.

Why do Data and Hores appear? They are example identifiers, not untranslated instructions. Code and spreadsheet must use the same headers. The interface can display Date and Hours without changing the spreadsheet names.

The page is blank or a function is missing. Check doGet(), that it loads Index, the Index.html file and that both files are complete. Do not duplicate the same functions in two code files.

The button shows neither success nor an error. Check withSuccessHandler and withFailureHandler. A failure should show a message, preserve entered values and re-enable the button.

The AI response is cut off. Ask for the missing file in full. Do not paste incomplete fragments or delete data to fix the problem.

The deployed change is not visible. Saving in the editor does not update the deployment. Select the existing deployment under Manage deployments, choose Edit → New version and reload the same /exec.

Can I share the form? Finish private tests first. Before opening access, review who can read and write on the server too. A URL is not a password and hiding a button does not protect a read function.

Language and progress

The selector changes explanations, instructions and prompts. It does not translate your data or change project identifiers. Sessions 0–6 and these resources are in three languages; all sessions are available in three languages.

Progress and the gallery are saved in this browser. Before clearing browser data or moving devices, download a backup from the course menu. A transfer link also contains course data: do not publish it.

Importing updates the supplied values; other previous browser records may remain. Keep a backup before importing. The training record is self-declared, not an official certification; its page is currently still in Catalan.

References

Google authorisation · Web apps · Server communication.

Improving and testing — Session 2

Must I complete every improvement? No. Complete diagnosis, one improvement, security review and access testing. The six-option bar is the optional catalogue. The app can remain private.

How do I test without changing the deployed version? On the copy with fictional data, use Deploy → Test deployments, at /dev, for editors only. /exec keeps its deployed version until updated; saving is not deployment.

Why is my change not visible? Check project, URL and version. After testing /dev, update the existing deployment through Manage deployments → Edit → New version and reload the same /exec.

Why does search miss an old record? It may be outside the loaded records. The field should state its scope; searching the list is not the same as searching the entire spreadsheet.

Where is the photo? The file lives in storage, such as Drive; the spreadsheet keeps a reference. Check file permissions separately. Do not make it public to fix a thumbnail. This is an optional advanced challenge.

How do I check it is still private? Use an unauthorised profile or account and expect access to be denied. With the authorised account, test reading, valid and invalid writing, and previous features. An AI review does not replace these tests.

GitHub and Codespaces — Session 3

I cannot finish GitHub registration. Check email verification: open the message in another tab and complete the code or link. Follow the account instructions.

Codespaces takes too long or will not open. Initial setup can take longer. Read the status or error. Check repository access, policies and quota before creating more environments or enabling payment.

Does Codespaces include unlimited free AI? No. It has compute and storage quotas; Copilot and other tools have separate access and limits. Review the account, payer and policies. You can use an authorised external chat without buying a plan to follow the explanations.

Where are commit and push? In Source Control. Review the diff, select files using Stage Changes, create the commit and push.

I committed but it is not on GitHub. A commit stays in the working copy until you push. Check files and history on github.com. Sync Changes may also incorporate changes; read and ask for help if rejected or conflicted. Do not force push.

AI cannot see the files. Attach both context documents and current code without secrets. Ask it to summarise what it read before proposing changes. An external chat does not edit the repository automatically.

Can I test Apps Script by opening the HTML in Codespaces? You may see some appearance, but google.script.run needs Apps Script. Test the real connection in the authorised environment, first at /dev with fictional data.

Does closing the tab stop Codespaces? Not necessarily. Save, commit, push, verify github.com and select Stop codespace at github.com/codespaces. A stopped environment still uses storage. Do not delete it before keeping the work you need.

References for these sessions

Apps Script testing and deployment · Included Codespaces usage · Codespaces lifecycle.

Branches and review — Session 4

I committed to main by mistake. Stop and distinguish uncommitted changes, local-only commits and shared commits. Preserve work before moving it. Creating a branch afterwards does not undo main. Ask for help with the specific state; in shared history, prepare a reviewed revert rather than using reset or force push blindly.

I created a branch on github.com, but my Codespace is still on main. Fetch and select the remote branch before editing. Check the branch name in your working copy.

AI reviews “in general”. Provide the current commit’s diff, affected files, context and sanitised test results. Ask for findings with locations and verification steps. Review again after another commit.

I cannot approve my own PR. GitHub does not allow formal approval of your own PR. In individual practice, document review and tests; do not require an impossible external approval.

Repeatable deployment — Session 5

clasp login will not complete. Follow the clasp 3.4.1 flow with the authorised account and check consent, permissions and policies. Remote environments may need --no-localhost or additional OAuth configuration. Do not share credentials or return URLs. Consult the kit guide.

The Action fails with an authorisation or API error. Check the account, Apps Script API, project and spreadsheet access, secret and valid credential. A disabled API is one possible cause, not the only one. Consult the administrator about policies; do not bypass them with another account.

It cannot find the secret or variables. Compare names and scopes: CLASPRC_JSON is a secret; SCRIPT_ID, DEPLOYMENT_ID and SPREADSHEET_ID are different variables. Do not print the credential.

The Action is green but /exec does not change. The job may have been skipped, used an older commit or updated another destination. Confirm event, SHA, steps, version and Deployment ID. Push only uploads code. The kit verifies upload and updates the same deployment; you still need to test the same /exec with the authorised account.

The kit detects more files or a different manifest. Stop. Export and review the complete project. Do not delete files or add --force to bypass the check. The kit is a bounded example; adapt it before using another app.

I fixed the workflow and clicked Re-run jobs. Re-run uses the original commit, not the later fix. Identify the SHA and remote state before another run. After push, editor code may have changed even if /exec has not.

I cannot protect main in my private repo. Availability depends on the plan and there may be administrator exceptions. Do not make the repo public to follow the exercise. Keep AUTO_DEPLOY empty, review the commit and publish manually if protections are ineffective.

How do I share an error with AI? Provide the step, expected result, commit, event and relevant sanitised lines, together with the workflow. Do not paste secrets, personal data or an unreviewed full log. The s5.actionDebug prompt asks to check state before retrying.

How do I restore the previous app? Clear AUTO_DEPLOY and check active or queued runs. In Apps Script, return to the previous version of the same deployment and test /exec. Also fix the repo through a PR. Data requires separate recovery.

Session 6 — Local apps, PWAs and next steps

Must I change platforms? Only when a need and a tested limit justify it. You can improve Apps Script.

Why is data missing after changing ports or devices? Storage depends on origin, profile and browser. Export and restore; synchronisation is not automatic. Persistence on file:// is not guaranteed.

An icon exists but offline use fails? Installation and offline tests are separate. Check the initial load, worker, resources and remote dependencies.

What if saving fails? The warning distinguishes memory from persistence. Do not blindly delete data; keep a progress backup and a separate backup of your app records.

What survives a language switch? Projects, columns, titles, identifiers, dates and progress. Instructions and labels are translated.

Does adding a project complete S6? In the new exercise, no. It starts in progress. Declare plan, test and recovery, then record completion once checked. The record is self-declared and earlier progress is preserved.

Page generated automatically from recursos/s0-s6/en/faq-alumne.md · reviewed on 2026-10-26. Edit the .md, not this file.
Download material as Markdown (.md)